package com.amway.qy.message.resp;

public abstract class RespBaseMessage {
	
	private static final long MILL_SECOND=1000;
	
	 // 企业号CorpID
    protected String ToUserName;  
    // 成员UserID
    protected String FromUserName;  
    // 消息创建时间 （整型）  
    // 微信端接收的时间标记是以秒为单位，而java默认是毫秒，故必除以MILL_SEC
    protected Long CreateTime=System.currentTimeMillis()/MILL_SECOND;  
    // 消息类型（text/image/location/link/voice/video/ShortVideo）  
    protected String MsgType;
    
	public RespBaseMessage(String toUserName, String fromUserName) {
		ToUserName = toUserName;
		FromUserName = fromUserName;
	}
	public String getToUserName() {
		return ToUserName;
	}
	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}
	public String getFromUserName() {
		return FromUserName;
	}
	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}
	public Long getCreateTime() {
		return CreateTime;
	}
	public void setCreateTime(Long createTime) {
		CreateTime = createTime/MILL_SECOND;
	}
	public String getMsgType() {
		return MsgType;
	}
	public void setMsgType(String msgType) {
		MsgType = msgType;
	}  
    
    
}
